package com.sss.hloster0307;

public class Circle extends Shape {// 圆类
	private float radius;// 半径

	public Circle() {
		super();
	}

	public Circle(char color, float radius) {
		super(color);
		this.radius = radius;
	}
	public void getArea() {
		System.out.println("该圆形面积为：" +  radius*radius*3.14);
	}

	public void getPer() {
		System.out.println("该圆形周长为：" + 2 * radius*3.14);
	}

	public void showAll() {
		System.out.println("该圆形颜色为：" + this.getColor());
		getArea();
		getPer();
	}


}
